package com.ktjy.market.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ktjy.market.mapper.AppCategoryMapper;
import com.ktjy.market.pojo.AppCategory;
import com.ktjy.market.service.AppCategoryService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 秦羽墨
* @description 针对表【app_category(手游类别)】的数据库操作Service实现
* @createDate 2024-05-13 17:14:35
*/
@Service/*("appCategoryService")*/
public class AppCategoryServiceImpl extends ServiceImpl<AppCategoryMapper, AppCategory>
    implements AppCategoryService {

    @Override
    public List<AppCategory> category1(Long pid) {
        QueryWrapper<AppCategory>wrapper=new QueryWrapper<>();
        wrapper.eq("parentId",pid);
        return baseMapper.selectList(wrapper);
    }
}




